import java.util.Scanner;

public class BitOfInt {
    public static void main(String[] args) {
        int n ;
        int tmp ;
        Scanner scanner = new Scanner(System.in);
        n = scanner.nextInt();
        tmp = n;
        while(tmp != 0){
            System.out.print(tmp % 10+" ,");
            tmp = tmp /10;
        }
    }
}
